<% if flash[:notice] %>
    <div id="notice"><%= flash[:notice] %></div>
<% end %>
<h1>Listado de Colecciones</h1>

<div class="shadow">
  <fieldset id="agrupacion">
     <legend>Búsqueda</legend>
       
        <% form_tag url_for(:action=>"update_table"),{:id =>"collections_form_search"} do -%>

          <p class="two-col">
            <%#= label_tag "Buscar" %>
            <%= text_field_tag "search_text" %>
            <%=  select_tag "search_multivalue",  options_for_select(CulturalHeritage::CollectionsController.multivalue), :class=>"short_select" %>
          </p>

          <%= submit_tag "Buscar", :class => "button", :name => "Buscar"  %>

          <span id="loading_search" style="display:none"></span>
        <% end %>
  </fieldset>
</div>

  <br />
  <br />

<div id="collections_table">
    <%= render :partial=>"table" %>
</div>

<br />

<% if user_signed_in? && CulturalHeritage::CollectionsController.edit_roles.include?(current_user.role)%>
  <%= link_to 'Nueva Colección', new_cultural_heritage_collection_path %>
<%end%>
